<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: SeismicEventData Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_seismic_event_data-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SeismicEventData Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Seismic <a class="el" href="class_event.html" title="Event class. ">Event</a> Data class.  
 <a href="class_seismic_event_data.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_seismic_event_data_8h_source.html">SeismicEventData.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for SeismicEventData:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_seismic_event_data.png" usemap="#SeismicEventData_map" alt=""/>
  <map id="SeismicEventData_map" name="SeismicEventData_map">
<area href="class_entity.html" title="Entity class. " alt="Entity" shape="rect" coords="0,0,113,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a08579f64a472839c9b15cb824f5cad9a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_seismic_event_data.html#a08579f64a472839c9b15cb824f5cad9a">SeismicEventData</a> ()</td></tr>
<tr class="memdesc:a08579f64a472839c9b15cb824f5cad9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a08579f64a472839c9b15cb824f5cad9a">More...</a><br/></td></tr>
<tr class="separator:a08579f64a472839c9b15cb824f5cad9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26b6d07678b7948869364be08e5aa27f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_seismic_event_data.html#a26b6d07678b7948869364be08e5aa27f">SeismicEventData</a> (unsigned int <a class="el" href="class_seismic_event_data.html#a3cfac81095ec0d5b827fce06c443c006">qcnExplorerSensorId</a>, double <a class="el" href="class_seismic_event_data.html#aacee33433528af3f3903e8c83bc1021a">latitude</a>, double <a class="el" href="class_seismic_event_data.html#a4a77ac549985e8b222915813ee774b1c">longitude</a>, double <a class="el" href="class_seismic_event_data.html#a5967036cf2c4ae8eac5ebf3f4ae9ff87">magnitude</a>, double <a class="el" href="class_seismic_event_data.html#a63c3a21f646eaea6602d87f961086578">eventTime</a>, double <a class="el" href="class_seismic_event_data.html#a79c48876bae13356fe493b79c5550868">distance</a>, unsigned int <a class="el" href="class_seismic_event_data.html#a9450a71a103dedfb9debb8688d17206a">regionId</a>)</td></tr>
<tr class="memdesc:a26b6d07678b7948869364be08e5aa27f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Seismic <a class="el" href="class_event.html" title="Event class. ">Event</a> Data class constructor with all parameters.  <a href="#a26b6d07678b7948869364be08e5aa27f">More...</a><br/></td></tr>
<tr class="separator:a26b6d07678b7948869364be08e5aa27f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd3f4de5842d8401581d4e313ca0eb36"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_seismic_event_data.html#acd3f4de5842d8401581d4e313ca0eb36">SeismicEventData</a> (const std::string &amp;dataLine, char delimiter)</td></tr>
<tr class="memdesc:acd3f4de5842d8401581d4e313ca0eb36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Seismic <a class="el" href="class_event.html" title="Event class. ">Event</a> Data class constructor with two parameter.  <a href="#acd3f4de5842d8401581d4e313ca0eb36">More...</a><br/></td></tr>
<tr class="separator:acd3f4de5842d8401581d4e313ca0eb36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_entity"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_entity')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_entity.html">Entity</a></td></tr>
<tr class="memitem:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_entity.html#ac2da1e8a32161accc56f39ac52cebd86">~Entity</a> ()=0</td></tr>
<tr class="memdesc:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="mdescLeft">&#160;</td><td class="mdescRight">Make this abstract (pure virtual), cannot be instantiated.  <a href="#ac2da1e8a32161accc56f39ac52cebd86">More...</a><br/></td></tr>
<tr class="separator:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a3cfac81095ec0d5b827fce06c443c006"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_seismic_event_data.html#a3cfac81095ec0d5b827fce06c443c006">qcnExplorerSensorId</a></td></tr>
<tr class="separator:a3cfac81095ec0d5b827fce06c443c006"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63c3a21f646eaea6602d87f961086578"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_seismic_event_data.html#a63c3a21f646eaea6602d87f961086578">eventTime</a></td></tr>
<tr class="separator:a63c3a21f646eaea6602d87f961086578"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacee33433528af3f3903e8c83bc1021a"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_seismic_event_data.html#aacee33433528af3f3903e8c83bc1021a">latitude</a></td></tr>
<tr class="separator:aacee33433528af3f3903e8c83bc1021a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a77ac549985e8b222915813ee774b1c"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_seismic_event_data.html#a4a77ac549985e8b222915813ee774b1c">longitude</a></td></tr>
<tr class="separator:a4a77ac549985e8b222915813ee774b1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5967036cf2c4ae8eac5ebf3f4ae9ff87"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_seismic_event_data.html#a5967036cf2c4ae8eac5ebf3f4ae9ff87">magnitude</a></td></tr>
<tr class="separator:a5967036cf2c4ae8eac5ebf3f4ae9ff87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79c48876bae13356fe493b79c5550868"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_seismic_event_data.html#a79c48876bae13356fe493b79c5550868">distance</a></td></tr>
<tr class="separator:a79c48876bae13356fe493b79c5550868"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9450a71a103dedfb9debb8688d17206a"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_seismic_event_data.html#a9450a71a103dedfb9debb8688d17206a">regionId</a></td></tr>
<tr class="separator:a9450a71a103dedfb9debb8688d17206a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Seismic <a class="el" href="class_event.html" title="Event class. ">Event</a> Data class. </p>
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>November 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </dd></dl>
<dl class="section user"><dt>Description</dt><dd>The seismic event will containt ID of sensor, longitude and latitude of sensor registering the event, magnitude of earthquake as observer by sensor, distance from sensor to earthquake hypocenter (in Km), time of event, region ID to which the sensor belongs. </dd></dl>

<p>Definition at line <a class="el" href="_seismic_event_data_8h_source.html#l00033">33</a> of file <a class="el" href="_seismic_event_data_8h_source.html">SeismicEventData.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a08579f64a472839c9b15cb824f5cad9a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SeismicEventData::SeismicEventData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor. </p>

<p>Definition at line <a class="el" href="_seismic_event_data_8cpp_source.html#l00096">96</a> of file <a class="el" href="_seismic_event_data_8cpp_source.html">SeismicEventData.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                                   {</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;}</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a26b6d07678b7948869364be08e5aa27f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SeismicEventData::SeismicEventData </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>qcnExplorerSensorId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>latitude</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>longitude</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>magnitude</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>eventTime</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>distance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>regionId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Seismic <a class="el" href="class_event.html" title="Event class. ">Event</a> Data class constructor with all parameters. </p>
<p>This constructor fills member variables from parameters.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">qcnExplorerSensorId</td><td>Unique sensor ID. </td></tr>
    <tr><td class="paramname">latitude</td><td>Latitude of sensor registering the event. </td></tr>
    <tr><td class="paramname">longitude</td><td>Longitude of sensor registering the event. </td></tr>
    <tr><td class="paramname">magnitude</td><td>Magnitude of earthquake as measured by sensor. </td></tr>
    <tr><td class="paramname">eventTime</td><td>Absolute occurrence time of event when measured or observed by sensor. </td></tr>
    <tr><td class="paramname">distance</td><td>Hypocentral distance between sensor and earthquake hypocenter. </td></tr>
    <tr><td class="paramname">regionID</td><td>Unique region ID to which the sensor belongs, according to QCNExplorer. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_seismic_event_data_8cpp_source.html#l00089">89</a> of file <a class="el" href="_seismic_event_data_8cpp_source.html">SeismicEventData.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;                                                                                                                                                                                 : </div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <a class="code" href="class_seismic_event_data.html#a3cfac81095ec0d5b827fce06c443c006">qcnExplorerSensorId</a>(<a class="code" href="class_seismic_event_data.html#a3cfac81095ec0d5b827fce06c443c006">qcnExplorerSensorId</a>), <a class="code" href="class_seismic_event_data.html#aacee33433528af3f3903e8c83bc1021a">latitude</a>(<a class="code" href="class_seismic_event_data.html#aacee33433528af3f3903e8c83bc1021a">latitude</a>), <a class="code" href="class_seismic_event_data.html#a4a77ac549985e8b222915813ee774b1c">longitude</a>(<a class="code" href="class_seismic_event_data.html#a4a77ac549985e8b222915813ee774b1c">longitude</a>), <a class="code" href="class_seismic_event_data.html#a5967036cf2c4ae8eac5ebf3f4ae9ff87">magnitude</a>(<a class="code" href="class_seismic_event_data.html#a5967036cf2c4ae8eac5ebf3f4ae9ff87">magnitude</a>), <a class="code" href="class_seismic_event_data.html#a63c3a21f646eaea6602d87f961086578">eventTime</a>(<a class="code" href="class_seismic_event_data.html#a63c3a21f646eaea6602d87f961086578">eventTime</a>), <a class="code" href="class_seismic_event_data.html#a79c48876bae13356fe493b79c5550868">distance</a>(<a class="code" href="class_seismic_event_data.html#a79c48876bae13356fe493b79c5550868">distance</a>), <a class="code" href="class_seismic_event_data.html#a9450a71a103dedfb9debb8688d17206a">regionId</a>(<a class="code" href="class_seismic_event_data.html#a9450a71a103dedfb9debb8688d17206a">regionId</a>) {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;}</div>
<div class="ttc" id="class_seismic_event_data_html_a3cfac81095ec0d5b827fce06c443c006"><div class="ttname"><a href="class_seismic_event_data.html#a3cfac81095ec0d5b827fce06c443c006">SeismicEventData::qcnExplorerSensorId</a></div><div class="ttdeci">unsigned int qcnExplorerSensorId</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00035">SeismicEventData.h:35</a></div></div>
<div class="ttc" id="class_seismic_event_data_html_a9450a71a103dedfb9debb8688d17206a"><div class="ttname"><a href="class_seismic_event_data.html#a9450a71a103dedfb9debb8688d17206a">SeismicEventData::regionId</a></div><div class="ttdeci">unsigned int regionId</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00041">SeismicEventData.h:41</a></div></div>
<div class="ttc" id="class_seismic_event_data_html_a5967036cf2c4ae8eac5ebf3f4ae9ff87"><div class="ttname"><a href="class_seismic_event_data.html#a5967036cf2c4ae8eac5ebf3f4ae9ff87">SeismicEventData::magnitude</a></div><div class="ttdeci">double magnitude</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00039">SeismicEventData.h:39</a></div></div>
<div class="ttc" id="class_seismic_event_data_html_a79c48876bae13356fe493b79c5550868"><div class="ttname"><a href="class_seismic_event_data.html#a79c48876bae13356fe493b79c5550868">SeismicEventData::distance</a></div><div class="ttdeci">double distance</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00040">SeismicEventData.h:40</a></div></div>
<div class="ttc" id="class_seismic_event_data_html_a4a77ac549985e8b222915813ee774b1c"><div class="ttname"><a href="class_seismic_event_data.html#a4a77ac549985e8b222915813ee774b1c">SeismicEventData::longitude</a></div><div class="ttdeci">double longitude</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00038">SeismicEventData.h:38</a></div></div>
<div class="ttc" id="class_seismic_event_data_html_aacee33433528af3f3903e8c83bc1021a"><div class="ttname"><a href="class_seismic_event_data.html#aacee33433528af3f3903e8c83bc1021a">SeismicEventData::latitude</a></div><div class="ttdeci">double latitude</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00037">SeismicEventData.h:37</a></div></div>
<div class="ttc" id="class_seismic_event_data_html_a63c3a21f646eaea6602d87f961086578"><div class="ttname"><a href="class_seismic_event_data.html#a63c3a21f646eaea6602d87f961086578">SeismicEventData::eventTime</a></div><div class="ttdeci">double eventTime</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00036">SeismicEventData.h:36</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="acd3f4de5842d8401581d4e313ca0eb36"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SeismicEventData::SeismicEventData </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>dataLine</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>delimiter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Seismic <a class="el" href="class_event.html" title="Event class. ">Event</a> Data class constructor with two parameter. </p>
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>November 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>.</dd></dl>
<p>This constructor tokenizes the parameter and fills member variables, using the delimiter. Note that the order of tokenizing must be obeyed in the line; the order is: qcnExplorerSensorID latitude longitude magnitude eventTime distance regionId.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dataLine</td><td></td></tr>
    <tr><td class="paramname">delimiter</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_seismic_event_data_8cpp_source.html#l00039">39</a> of file <a class="el" href="_seismic_event_data_8cpp_source.html">SeismicEventData.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;                                                                            {</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    std::string strQcnExplorerSensorId; <span class="comment">//&lt;! Unique sensor ID.</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    std::string strLatitude; <span class="comment">//&lt;! Latitude of sensor registering the event.</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    std::string strLongitude; <span class="comment">//&lt;! Longitude of sensor registering the event.</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    std::string strMagnitude; <span class="comment">//&lt;! Magnitude of earthquake as measured by sensor.</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    std::string strEventTime; <span class="comment">//&lt;! Absolute occurrence time of event when measured or observed by sensor.</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    std::string strDistance; <span class="comment">//&lt;! Hypocentral distance between sensor and earthquake hypocenter.</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    std::string strRegionID; <span class="comment">//&lt;! Unique region ID to which the sensor belongs, according to QCNExplorer.</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    std::stringstream dataLineStream(dataLine); <span class="comment">// Get a stringstream object out of the data line.</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="comment">// Now extract fields into strings and fill member variables.</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="comment">// QcnExplorerSensorId.</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    std::getline(dataLineStream, strQcnExplorerSensorId, delimiter);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    this-&gt;<a class="code" href="class_seismic_event_data.html#a3cfac81095ec0d5b827fce06c443c006">qcnExplorerSensorId</a> = std::stoul(strQcnExplorerSensorId);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="comment">// Latitude.</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    std::getline(dataLineStream, strLatitude, delimiter);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    this-&gt;<a class="code" href="class_seismic_event_data.html#aacee33433528af3f3903e8c83bc1021a">latitude</a> = std::stod(strLatitude);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="comment">// Longitude.</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    std::getline(dataLineStream, strLongitude, delimiter);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    this-&gt;<a class="code" href="class_seismic_event_data.html#a4a77ac549985e8b222915813ee774b1c">longitude</a> = std::stod(strLongitude);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="comment">// Magnitude.</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    std::getline(dataLineStream, strMagnitude, delimiter);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    this-&gt;<a class="code" href="class_seismic_event_data.html#a5967036cf2c4ae8eac5ebf3f4ae9ff87">magnitude</a> = std::stod(strMagnitude);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="comment">// EventTime.</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    std::getline(dataLineStream, strEventTime, delimiter);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    this-&gt;<a class="code" href="class_seismic_event_data.html#a63c3a21f646eaea6602d87f961086578">eventTime</a> = std::stod(strEventTime);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="comment">// Distance.</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    std::getline(dataLineStream, strDistance, delimiter);</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    this-&gt;<a class="code" href="class_seismic_event_data.html#a79c48876bae13356fe493b79c5550868">distance</a> = std::stod(strDistance);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="comment">// RegionId.</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    std::getline(dataLineStream, strRegionID, delimiter);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    this-&gt;<a class="code" href="class_seismic_event_data.html#a9450a71a103dedfb9debb8688d17206a">regionId</a> = std::stoul(strRegionID);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;}</div>
<div class="ttc" id="class_seismic_event_data_html_a3cfac81095ec0d5b827fce06c443c006"><div class="ttname"><a href="class_seismic_event_data.html#a3cfac81095ec0d5b827fce06c443c006">SeismicEventData::qcnExplorerSensorId</a></div><div class="ttdeci">unsigned int qcnExplorerSensorId</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00035">SeismicEventData.h:35</a></div></div>
<div class="ttc" id="class_seismic_event_data_html_a9450a71a103dedfb9debb8688d17206a"><div class="ttname"><a href="class_seismic_event_data.html#a9450a71a103dedfb9debb8688d17206a">SeismicEventData::regionId</a></div><div class="ttdeci">unsigned int regionId</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00041">SeismicEventData.h:41</a></div></div>
<div class="ttc" id="class_seismic_event_data_html_a5967036cf2c4ae8eac5ebf3f4ae9ff87"><div class="ttname"><a href="class_seismic_event_data.html#a5967036cf2c4ae8eac5ebf3f4ae9ff87">SeismicEventData::magnitude</a></div><div class="ttdeci">double magnitude</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00039">SeismicEventData.h:39</a></div></div>
<div class="ttc" id="class_seismic_event_data_html_a79c48876bae13356fe493b79c5550868"><div class="ttname"><a href="class_seismic_event_data.html#a79c48876bae13356fe493b79c5550868">SeismicEventData::distance</a></div><div class="ttdeci">double distance</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00040">SeismicEventData.h:40</a></div></div>
<div class="ttc" id="class_seismic_event_data_html_a4a77ac549985e8b222915813ee774b1c"><div class="ttname"><a href="class_seismic_event_data.html#a4a77ac549985e8b222915813ee774b1c">SeismicEventData::longitude</a></div><div class="ttdeci">double longitude</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00038">SeismicEventData.h:38</a></div></div>
<div class="ttc" id="class_seismic_event_data_html_aacee33433528af3f3903e8c83bc1021a"><div class="ttname"><a href="class_seismic_event_data.html#aacee33433528af3f3903e8c83bc1021a">SeismicEventData::latitude</a></div><div class="ttdeci">double latitude</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00037">SeismicEventData.h:37</a></div></div>
<div class="ttc" id="class_seismic_event_data_html_a63c3a21f646eaea6602d87f961086578"><div class="ttname"><a href="class_seismic_event_data.html#a63c3a21f646eaea6602d87f961086578">SeismicEventData::eventTime</a></div><div class="ttdeci">double eventTime</div><div class="ttdef"><b>Definition:</b> <a href="_seismic_event_data_8h_source.html#l00036">SeismicEventData.h:36</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a79c48876bae13356fe493b79c5550868"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double SeismicEventData::distance</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_seismic_event_data_8h_source.html#l00040">40</a> of file <a class="el" href="_seismic_event_data_8h_source.html">SeismicEventData.h</a>.</p>

</div>
</div>
<a class="anchor" id="a63c3a21f646eaea6602d87f961086578"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double SeismicEventData::eventTime</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_seismic_event_data_8h_source.html#l00036">36</a> of file <a class="el" href="_seismic_event_data_8h_source.html">SeismicEventData.h</a>.</p>

</div>
</div>
<a class="anchor" id="aacee33433528af3f3903e8c83bc1021a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double SeismicEventData::latitude</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_seismic_event_data_8h_source.html#l00037">37</a> of file <a class="el" href="_seismic_event_data_8h_source.html">SeismicEventData.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4a77ac549985e8b222915813ee774b1c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double SeismicEventData::longitude</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_seismic_event_data_8h_source.html#l00038">38</a> of file <a class="el" href="_seismic_event_data_8h_source.html">SeismicEventData.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5967036cf2c4ae8eac5ebf3f4ae9ff87"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double SeismicEventData::magnitude</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_seismic_event_data_8h_source.html#l00039">39</a> of file <a class="el" href="_seismic_event_data_8h_source.html">SeismicEventData.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3cfac81095ec0d5b827fce06c443c006"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int SeismicEventData::qcnExplorerSensorId</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_seismic_event_data_8h_source.html#l00035">35</a> of file <a class="el" href="_seismic_event_data_8h_source.html">SeismicEventData.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9450a71a103dedfb9debb8688d17206a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int SeismicEventData::regionId</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_seismic_event_data_8h_source.html#l00041">41</a> of file <a class="el" href="_seismic_event_data_8h_source.html">SeismicEventData.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>QcnSim/<a class="el" href="_seismic_event_data_8h_source.html">SeismicEventData.h</a></li>
<li>QcnSim/<a class="el" href="_seismic_event_data_8cpp_source.html">SeismicEventData.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Nov 14 2013 11:18:24 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
